<script>
function init() {
    window.opener.canExit = true;
    window.opener.log('page-2, about to go back to page-1');
    history.back();
}
</script>
<body onload="init()"></body>
